package cn.com.git.admin.dao;

import cn.com.git.admin.dao.model.SysDepartment;
import cn.com.git.admin.service.query.SysDepartmentListQuery;

import java.util.List;

/**
  * SysDepartmentDAO接口
  * @author zhangzhenfu
  * @Description
  * @date 2020/5/18
*/
public interface SysDepartmentDAO {

    SysDepartment selectById(Integer id);

    SysDepartment selectOne(SysDepartmentListQuery query);

    int countLimit(SysDepartmentListQuery query);

    List<SysDepartment> selectList(SysDepartmentListQuery query);

    Integer insertOne(SysDepartment record);

    List<SysDepartment> insertList(List<SysDepartment> list);

    Integer updateOne(SysDepartment record);

    Integer updateLimit(SysDepartment record, SysDepartmentListQuery query);

    Integer deleteOne(Integer id);

    Integer deleteLimit(SysDepartmentListQuery query);
}